package cn.webrx;

import java.util.Iterator;
import java.util.Stack;
import java.util.Vector;

public class Vector1 {
    public static void main(String[] args) {
        Vector<Integer> v = new Vector();
        v.add(10);
        v.add(20);
        v.add(20);
        v.add(30);
        System.out.println(v.size());
        Iterator<Integer> iterator = v.iterator();
        while (iterator.hasNext()) {
            System.out.println(iterator.next());
        }

        Stack<String> ss = new Stack<>();


    }
}
